<?php 
//订单列表修改是否发货
	include_once("./com.php");
	echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
	$order_id=$_GET['order_id'];
	$type=$_GET['type'];
	if($type==1){	
	$sql="update ts_order set delivery_status=1 where order_id='$order_id'";
	mysql_query($sql);
	if(mysql_affected_rows()>0){
		echo "<script>
		alert('发货成功')
		location.href='order.php'
		</script>";
	}else{
		 echo "<script>
		 alert('发货失败')
		 location.href='order.php'
		 </script>";
	}
}elseif($type==2){	
	$sql="update ts_order set delivery_status=2 where order_id='$order_id'";
	mysql_query($sql);
	if(mysql_affected_rows()>0){
		echo "<script>
		alert('已收货')
		location.href='../order_list.php'
		</script>";
	}else{
		 echo "<script>
		 alert('收货失败')
		 location.href='../order_list.php'
		 </script>";
	}

}

 ?>